package com.fy.dishimei.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 用户分类
 * @TableName sys_user_sort
 */
@TableName(value ="sys_user_sort")
@Data
public class SysUserSort implements Serializable {
    /**
     * 分类编码
     */
    @TableId
    private String susCode;

    /**
     * 分类名称
     */
    private String susName;

    /**
     * 备注
     */
    private String susRemark;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SysUserSort other = (SysUserSort) that;
        return (this.getSusCode() == null ? other.getSusCode() == null : this.getSusCode().equals(other.getSusCode()))
            && (this.getSusName() == null ? other.getSusName() == null : this.getSusName().equals(other.getSusName()))
            && (this.getSusRemark() == null ? other.getSusRemark() == null : this.getSusRemark().equals(other.getSusRemark()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getSusCode() == null) ? 0 : getSusCode().hashCode());
        result = prime * result + ((getSusName() == null) ? 0 : getSusName().hashCode());
        result = prime * result + ((getSusRemark() == null) ? 0 : getSusRemark().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", susCode=").append(susCode);
        sb.append(", susName=").append(susName);
        sb.append(", susRemark=").append(susRemark);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}